#!/usr/bin/python
# vim:ts=4:sw=4:softtabstop=0:smarttab

"""
Apple
-----

Example test case that was exported from database.

"""

from pycopia.QA import core

class EatTheApple(core.Test):
    """
    Purpose
    +++++++

    <p>Demonstrage eating an apple.</p>

    Pass Criteria
    +++++++++++++

    <p>The apple is passed.</p>

    Start Condition
    +++++++++++++++

    <p>empty stomach.</p>

    End Condition
    +++++++++++++

    <p>Stomach full of apple.</p>

    Reference
    +++++++++

    Where is this?


    Prerequisites
    +++++++++++++



    Procedure
    +++++++++

    <ol>
<li>Open mouth</li>
<li>Place apple to mouth </li>
<li>Bite with teeth</li>
<li>Chew</li>
<li>swallow</li>
<li>repeat steps 2 through 5 until apple is gone.</li>
</ol>

    """


    def execute(self):
        return self.manual()

def get_suite(config):
    suite = core.TestSuite(config, name="Apple")
    suite.add_test(EatTheApple)
    return suite

def run(config):
    suite = get_suite(config)
    return suite.run()
